package com.myjavalab.objectpool;

public class PoolableObjectFactory {

	private static PoolableObjectFactory objFactory;
	
	public static PoolableObjectFactory getInstance(){
		if(objFactory == null){
			objFactory = new PoolableObjectFactory();
		}
		return objFactory;
	}
	
	public Object createObject(Class clsType){
		Object obj = null;
		try{
			clsType.newInstance();	
		}catch(Exception e){
			System.out.print(e.getMessage());
			e.printStackTrace();
		}
		return obj; 
	}
}
